package com.lwj.test.proxy;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConnectionProvider {
	public static Connection getConnection()   
    {
		Connection connection = null;
       try{   
          
           Class.forName("oracle.jdbc.OracleDriver").newInstance();   
           connection = DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.101:1521:orcl", "scott", "tiger");
       }catch(Exception e){
    	   e.printStackTrace();
       }
       return connection;
    }
}
